// 入口文件
import Vue from 'vue'

// 导入和加载路由
import VueRouter from 'vue-router'
Vue.use(VueRouter)


import moment  from 'moment'

// Vue.filter('dateFormat',function(dataStr,pattern="YYYY-MM-DD HH:mm:ss"){
//     return moment(dataStr).format(pattern)
// })

import VueResource from 'vue-resource'
Vue.use(VueResource)

import axios from 'axios'
Vue.prototype.$axios = axios;


import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'


import { Header,Swipe,SwipeItem } from 'mint-ui'
Vue.component(Header.name,Header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)

// 导入router.js模块
import router from './router.js'


import app from './App.vue'

var vm = new Vue({
    el:'#app',
    render: c => c(app),
    router 

})